<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');

class Rank extends CI_Controller
{
	function __construct()
	{
		parent::__construct();
		$this->load->model('rank/rank_model');
	}
    function index()
    {
        if(!$this->session->userdata('username'))
        {
            redirect(site_url('login'));
            die();
        }
        $data = array();
        $page = 1;
        $numrow = 20;
        $info = $this->rank_model->ww_get_rank($page, $numrow);
        $data['info'] = $info[0];
        $data['pages'] = $info[1][0];
        // header
        
        // content
        $this->load->view('rank/rank_view', $data);
        
        // footer
    }
 }